<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #ele{
            width: 500px;
            margin: 100px auto;
            text-align: center;
        }
        .list{
            display: flex;
            width: 500px;
            height: 100px;
        }
        .left{
            width: 25%;
        }
        .center{
            width: 50%;
            line-height: 50px;
        }
        .right{
            width: 25%;
            line-height: 100px;
        }
        button{
            width: 100%;
        }
        img{
            width: 100%;
        }
    </style>
</head>
<body>
    <div id="ele">
        <h1>样式</h1>
        <div class="list" v-for="(item,index) in list" v-bind:key="index">
            <div class="left">
                <img v-bind:src="item.pic" alt="">
            </div>
            <div class="center">
                <div class="top">{{item.text}}</div>
                <div class="bottom">{{item.anal}}</div>
            </div>
            <div class="right">
                <button>{{item.state == 1 ? item.text + '未开始' : item.state == 2 ? item.text + '正在进行' : item.text + '已完成'}}</button>
            </div>
        </div>
    </div>
</body>
</html>
<script src="./vue-2.5.21.js"></script>
<script>
    var v = new Vue ({
        el: '#ele' ,
        data: {
            list:[
                {id : 1 , text : '嘿哈' , anal: '这是**' , state : 1, pic : './pic.jpg'},
                {id : 1 , text : '嘿哈嘿' , anal: '这是**' , state : 1, pic : './pic.jpg'},
                {id : 1 , text : '嘿嘿哈' , anal: '这是**' , state : 1, pic : './pic.jpg'},
                {id : 1 , text : '嘿哈哈' , anal: '这是**' , state : 1, pic : './pic.jpg'},
                {id : 1 , text : '嘿哈嘿哈' , anal: '这是**' , state : 1, pic : './pic.jpg'},
                {id : 1 , text : '哈嘿' , anal: '这是**' , state : 1, pic : './pic.jpg'}
            ]
        },
        computed: {},
        watch : {},
        methods : {},
        filters: {},
        directives : {},
        components : {}
    })
</script>